'use strict';
const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';

const RESOURCES = {"flutter_bootstrap.js": "5eeb6056ec50cd49050f7eef32183641",
"version.json": "3a98ed1d2f64f3b5c2fe431da9ebd5e0",
"index.html": "0e13d3217b3a9946f86f9a34fff4c998",
"/": "0e13d3217b3a9946f86f9a34fff4c998",
"main.dart.js": "c4f9dc7058d36c4b3e183c3af449a609",
"flutter.js": "383e55f7f3cce5be08fcf1f3881f585c",
"favicon.png": "12f93d6840404056f5f1dc1ae8311589",
"icons/Icon-192.png": "156a11fc808a85c2c1e4e08f2b329b9b",
"icons/Icon-maskable-192.png": "697e6a28031dbddb14261775495633c0",
"icons/Icon-maskable-512.png": "def00e06862d427e731259e2d60538a3",
"icons/Icon-512.png": "86e0de0978f949e0b81705e9aa467522",
"manifest.json": "e21bba9c52550fb4d599443454320909",
"assets/AssetManifest.json": "29b52c7a4b44420e34288e07c1911ee0",
"assets/NOTICES": "8cf7464b602bb443f320d80e5db03301",
"assets/FontManifest.json": "b8f3158de839442b3ba351c29a86a97a",
"assets/AssetManifest.bin.json": "064d769c40d316e3655b6a55c36eb9d6",
"assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "6d342eb68f170c97609e9da345464e5e",
"assets/shaders/ink_sparkle.frag": "ecc85a2e95f5e9f53123dcaf8cb9b6ce",
"assets/AssetManifest.bin": "3f22b34b205141c0b241c4399c752855",
"assets/fonts/MaterialIcons-Regular.otf": "e7069dfd19b331be16bed984668fe080",
"assets/assets/calendar/calendar1949-2050.zip": "c8dc7976eb6578a581c556360aa61faf",
"assets/assets/meetingTest/meetingList.json": "faeb59813978251b4d11141378607882",
"assets/assets/meeting/meetingTencent.png": "fc94545f8fed06cc7585e50ec35e384e",
"assets/assets/meeting/meetingHuawei.png": "ef7a9d36156ba7c650ac9f97e52feb1c",
"assets/assets/meeting/meetingDingTalk.png": "cfc0eaa073c64124c7dd6ef9894a78e2",
"assets/assets/meeting/meetingPeople.png": "467ff15142160c3d7c7f78b2f99d0efb",
"assets/assets/meeting/placeHolder.png": "daccb41fd10b67b8bd0d547f8d6f8610",
"assets/assets/meeting/noMeeting.png": "bc028d84baeb93cc6df89001a6b19e9c",
"assets/assets/meeting/meetingZoom.png": "217c2dc1a93508e6439609f8d3c23ced",
"assets/assets/meeting/meetingVC.png": "3e1e51931281bdf2477ddf30616dcf3c",
"assets/assets/meeting/meetingTime.png": "66638bdfd732215710ddef4332f33990",
"assets/assets/meeting/meetingFeiShu.png": "1d6434522a06ba0eda4e88744973d7dc",
"assets/assets/meeting/meetingXiaoyu.png": "2de0d84b7c1558668606e38b00b5262d",
"assets/assets/meeting/meetingHuaweiCloud.png": "8d0344b843399fe220bbbdab2ad56bf3",
"assets/assets/cameraPage/direction-click.png": "d779923beaf903ae3b297db53c8e6146",
"assets/assets/cameraPage/bg-small-ellipse.png": "415c6c0ea4e03ec57d93b9994c65b30b",
"assets/assets/cameraPage/bg-big-ellipse.png": "80965f5aec9f1d614814d982b9b64a27",
"assets/assets/cameraPage/direction-normal.png": "e119991f9f8093c0c742dc0e1e9fae3b",
"assets/assets/click.wav": "25a9a88c9217fdbd8e7d31fe036e9f07",
"assets/assets/eval/env_6_1.text": "a027b725f5b3314486c163cf9e079fac",
"assets/assets/eval/env_6_1_1106.text": "2694dc929c416f64019cdd40fd9fa3a3",
"assets/assets/eval/huayin_matrix.text": "412708aee89c6a95b9b340d5120be0e8",
"assets/assets/eval/chuanyin_meeting_list.text": "bd31299790aca4c3d60e11fada2f1d7c",
"assets/assets/font/iconfont.ttf": "1c9d9406d505bdaaf903d15f3ed41ee2",
"assets/assets/font/notosanssc.otf": "e3ae561f7b8052d9aa9f2b0b09c33ea1",
"assets/assets/example_files/variableList.json": "38420fc20057f0e6aac9f6aea7a17c57",
"assets/assets/example_files/EZControlApp.json": "396ef714aeb010fb938932c75d60c277",
"assets/assets/cameraTrack/Bot-click.png": "1074030989397fc9981b9b649d085f99",
"assets/assets/cameraTrack/Bot-normal.png": "2fbd6ff11c26bdf4eca11b484b28f70c",
"assets/assets/cameraTrack/Right-click.png": "130d2a8c48e2e146e489eb450d582cfb",
"assets/assets/cameraTrack/Top-click.png": "8feb57a245f99bea1e06492f170d9d78",
"assets/assets/cameraTrack/Top-normal.png": "594d5e7a75430ff44fad634920288e86",
"assets/assets/cameraTrack/Left-normal.png": "e62442ff1c8f5d868c54b6a0a5fc6049",
"assets/assets/cameraTrack/direction-bg.png": "f4b6afc3c00920b7b8f337084c90edbf",
"assets/assets/cameraTrack/Right-normal.png": "a0358bfd7fced40baf74e13937bfaa89",
"assets/assets/cameraTrack/camera.png": "80cc5efd13d0450a279e71448fdbf269",
"assets/assets/cameraTrack/Left-click.png": "e6457583c9e85fce584296f32366f3ad",
"canvaskit/skwasm.js": "5d4f9263ec93efeb022bb14a3881d240",
"canvaskit/skwasm.js.symbols": "c3c05bd50bdf59da8626bbe446ce65a3",
"canvaskit/canvaskit.js.symbols": "74a84c23f5ada42fe063514c587968c6",
"canvaskit/skwasm.wasm": "4051bfc27ba29bf420d17aa0c3a98bce",
"canvaskit/chromium/canvaskit.js.symbols": "ee7e331f7f5bbf5ec937737542112372",
"canvaskit/chromium/canvaskit.js": "901bb9e28fac643b7da75ecfd3339f3f",
"canvaskit/chromium/canvaskit.wasm": "399e2344480862e2dfa26f12fa5891d7",
"canvaskit/canvaskit.js": "738255d00768497e86aa4ca510cce1e1",
"canvaskit/canvaskit.wasm": "9251bb81ae8464c4df3b072f84aa969b",
"canvaskit/skwasm.worker.js": "bfb704a6c714a75da9ef320991e88b03"};
// The application shell files that are downloaded before a service worker can
// start.
const CORE = ["main.dart.js",
"index.html",
"flutter_bootstrap.js",
"assets/AssetManifest.bin.json",
"assets/FontManifest.json"];

// During install, the TEMP cache is populated with the application shell files.
self.addEventListener("install", (event) => {
  self.skipWaiting();
  return event.waitUntil(
    caches.open(TEMP).then((cache) => {
      return cache.addAll(
        CORE.map((value) => new Request(value, {'cache': 'reload'})));
    })
  );
});
// During activate, the cache is populated with the temp files downloaded in
// install. If this service worker is upgrading from one with a saved
// MANIFEST, then use this to retain unchanged resource files.
self.addEventListener("activate", function(event) {
  return event.waitUntil(async function() {
    try {
      var contentCache = await caches.open(CACHE_NAME);
      var tempCache = await caches.open(TEMP);
      var manifestCache = await caches.open(MANIFEST);
      var manifest = await manifestCache.match('manifest');
      // When there is no prior manifest, clear the entire cache.
      if (!manifest) {
        await caches.delete(CACHE_NAME);
        contentCache = await caches.open(CACHE_NAME);
        for (var request of await tempCache.keys()) {
          var response = await tempCache.match(request);
          await contentCache.put(request, response);
        }
        await caches.delete(TEMP);
        // Save the manifest to make future upgrades efficient.
        await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES)));
        // Claim client to enable caching on first launch
        self.clients.claim();
        return;
      }
      var oldManifest = await manifest.json();
      var origin = self.location.origin;
      for (var request of await contentCache.keys()) {
        var key = request.url.substring(origin.length + 1);
        if (key == "") {
          key = "/";
        }
        // If a resource from the old manifest is not in the new cache, or if
        // the MD5 sum has changed, delete it. Otherwise the resource is left
        // in the cache and can be reused by the new service worker.
        if (!RESOURCES[key] || RESOURCES[key] != oldManifest[key]) {
          await contentCache.delete(request);
        }
      }
      // Populate the cache with the app shell TEMP files, potentially overwriting
      // cache files preserved above.
      for (var request of await tempCache.keys()) {
        var response = await tempCache.match(request);
        await contentCache.put(request, response);
      }
      await caches.delete(TEMP);
      // Save the manifest to make future upgrades efficient.
      await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES)));
      // Claim client to enable caching on first launch
      self.clients.claim();
      return;
    } catch (err) {
      // On an unhandled exception the state of the cache cannot be guaranteed.
      console.error('Failed to upgrade service worker: ' + err);
      await caches.delete(CACHE_NAME);
      await caches.delete(TEMP);
      await caches.delete(MANIFEST);
    }
  }());
});
// The fetch handler redirects requests for RESOURCE files to the service
// worker cache.
self.addEventListener("fetch", (event) => {
  if (event.request.method !== 'GET') {
    return;
  }
  var origin = self.location.origin;
  var key = event.request.url.substring(origin.length + 1);
  // Redirect URLs to the index.html
  if (key.indexOf('?v=') != -1) {
    key = key.split('?v=')[0];
  }
  if (event.request.url == origin || event.request.url.startsWith(origin + '/#') || key == '') {
    key = '/';
  }
  // If the URL is not the RESOURCE list then return to signal that the
  // browser should take over.
  if (!RESOURCES[key]) {
    return;
  }
  // If the URL is the index.html, perform an online-first request.
  if (key == '/') {
    return onlineFirst(event);
  }
  event.respondWith(caches.open(CACHE_NAME)
    .then((cache) =>  {
      return cache.match(event.request).then((response) => {
        // Either respond with the cached resource, or perform a fetch and
        // lazily populate the cache only if the resource was successfully fetched.
        return response || fetch(event.request).then((response) => {
          if (response && Boolean(response.ok)) {
            cache.put(event.request, response.clone());
          }
          return response;
        });
      })
    })
  );
});
self.addEventListener('message', (event) => {
  // SkipWaiting can be used to immediately activate a waiting service worker.
  // This will also require a page refresh triggered by the main worker.
  if (event.data === 'skipWaiting') {
    self.skipWaiting();
    return;
  }
  if (event.data === 'downloadOffline') {
    downloadOffline();
    return;
  }
});
// Download offline will check the RESOURCES for all files not in the cache
// and populate them.
async function downloadOffline() {
  var resources = [];
  var contentCache = await caches.open(CACHE_NAME);
  var currentContent = {};
  for (var request of await contentCache.keys()) {
    var key = request.url.substring(origin.length + 1);
    if (key == "") {
      key = "/";
    }
    currentContent[key] = true;
  }
  for (var resourceKey of Object.keys(RESOURCES)) {
    if (!currentContent[resourceKey]) {
      resources.push(resourceKey);
    }
  }
  return contentCache.addAll(resources);
}
// Attempt to download the resource online before falling back to
// the offline cache.
function onlineFirst(event) {
  return event.respondWith(
    fetch(event.request).then((response) => {
      return caches.open(CACHE_NAME).then((cache) => {
        cache.put(event.request, response.clone());
        return response;
      });
    }).catch((error) => {
      return caches.open(CACHE_NAME).then((cache) => {
        return cache.match(event.request).then((response) => {
          if (response != null) {
            return response;
          }
          throw error;
        });
      });
    })
  );
}
